import request from '@/utuls/request'
export const getProList = (paramsObj) => {
  const { categoryId, goodsName, page } = paramsObj
  return request.get('/goods/list', {
    params: {
      categoryId,
      goodsName,
      page
    }
  })
}

export const getDetailAPI = (goodsId) => {
  return request.get('/goods/detail', {
    params: {
      goodsId
    }
  })
}

export const getListAsk = (goodsId, limit = 4) => {
  return request.get('/comment/listRows', {
    params: {
      goodsId,
      limit
    }
  })
}
